﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Account_GuiderInfo : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    //提交申请
    protected void btn_save_Click(object sender, EventArgs e)
    {
        try
        {
            string title = txt_title.Value.Trim();
            string city = txt_city.Value.Trim();
            //string info = txtDefaultHtmlArea.Value.Trim();
            string info = Textarea1.Value.Trim();
            int result = DataHandler.Current.applyGuideInfo(Uid, title, city, info);
            switch (result)
            {
                case 1:
                    Common.AlertMessage("申请成功！");
                    break;
                case 2:
                    Common.AlertMessage("申请成功！");
                    break;
                case 0:
                    Common.AlertMessage("申请失败，请重试！");
                    break;
                case -1:
                    Common.AlertMessage("系统出错！");
                    break;
                default:
                    break;
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}